package com.bmps.springcloud.insuredmicroservice.service.underwrite.strategy.riskamount;

import com.bmps.springcloud.insuredmicroservice.model.accept.medium.PolicyRiskInfoModel;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

/**
 * description:
 * HDT053风险保额
 *
 * @author jackdaw
 * @date 2020-04-16 19:00
 */
@Component
public class Hdt053Strategy implements InsuranceRiskAmountStrategy {
    @Override
    public BigDecimal getRiskAmount(PolicyRiskInfoModel policyRiskInfoModel, boolean isCurrent, Object object) {
        return policyRiskInfoModel.getAmnt().multiply(BigDecimal.valueOf(0.2));
    }
}
